package com.atguigu.service.Impl;

import com.atguigu.dao.AdminDao;
import com.atguigu.dao.BaseDao;
import com.atguigu.entity.Admin;
import com.atguigu.service.AdminService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @title：
 * @author：Yu
 * @create：2023-02-04 9:58
 * @description：
 */
@DubboService
public class AdminServiceImpl extends BaseServiceImpl<Admin> implements AdminService {
    @Autowired
    private AdminDao adminDao;

    @Override
    public BaseDao<Admin> getBaseDao() {
        return adminDao;
    }

    @Override
    public void upload(Long adminId, String fileName) {
        adminDao.upload(adminId, fileName);
    }

    @Override
    public Admin findAdminByUsername(String username) {
        return adminDao.findAdminByUsername(username);
    }
}
